package cn.wenlihelp.bean;

import lombok.Data;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * 资源信息表
 *
 * @TableName resources
 */
@Data
public class Resources implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 资源ID
     */
    private Integer id;

    /**
     * 父资源ID
     */
    private Integer pid;

    /**
     * 资源名称
     */
    private String name;

    /**
     * 资源代码
     */
    private String code;

    /**
     * 资源访问路径
     */
    private String url;

    /**
     * 资源类型
     */
    private Integer type;

    private Resources parent;

    private ResourceType resourceType;

    private Set<Resources> childs = new HashSet<>();

}